<!--常用导航 开始-->
<div id="info_list">
    <div class="modal-header">
        <span class="modal-title" id="modal_white_title"><i class="fas fa-info-circle mr-1"></i>{:lang('shopv_normally')} {:lang('v_navigation')}</span>
        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span></button>
    </div>
    <div class="modal-body">
        <table class="table table-striped table-bordered table-hover">
            <tr>
                <td width="120" class="overflow-hidden">{:lang('v_title')}</td>
                <td>{:lang('v_linkurl')}</td>
                <td width="80" class="text-center overflow-hidden">{:lang('v_do')}</td>
            </tr>
            <tr>
                <td>{:lang('v_index')}</td>
                {if input('client') eq 'app'}
                    <td>/pages/index/index</td>
                    <td class="text-center"><button class="btn btn-sm btn-default" onclick="javascript:check_close('/pages/index/index');">{:lang('v_select')}</button></td>
                {else /}
                    <td>{$home_url}</td>
                    <td class="text-center"><button class="btn btn-sm btn-default" onclick="javascript:check_close('{$home_url}');">{:lang('v_select')}</button></td>
                {/if}
            </tr>
            {volist name="module_list" id="moduleRs"}
                <tr>
                    <td>{$moduleRs.title} {:lang('v_index')}</td>
                    {if input('client') eq 'app'}
                        <td>/pages/{$moduleRs.urlroute}/index</td>
                        <td class="text-center">
                            <button class="btn btn-sm btn-default" onclick="javascript:check_close('/pages/{$moduleRs.urlroute}/index');">{:lang('v_select')}</button>
                        </td>
                    {else /}
                        <td><?php the_list_url($moduleRs['tabledir'],'',$moduleRs['lang']); ?></td>
                        <td class="text-center">
                            <button class="btn btn-sm btn-default" onclick="javascript:check_close('<?php the_list_url($moduleRs['tabledir'],'',$moduleRs['lang']); ?>');">{:lang('v_select')}</button>
                        </td>
                    {/if}
                </tr>
            {/volist}
        </table>
    </div>
</div>
<script type="text/javascript">
//关闭窗口
function check_close(linkurl){
    $('#linkurl').attr('href',linkurl);
    $('input[name="linkurl"]').val(linkurl);
    $("#modal").modal('hide');
}
</script>
<!--常用导航 结束-->